﻿using System;

namespace GameFramework.data
{
    public abstract class AbstractData:IData
    {
        private Func<IData> valueChangeDeletea;
        
        public string dataName()
        {
            return GetType().Name;
        }
        

        public void onValueChange()
        {
            if (valueChangeDeletea != null)
            {
                valueChangeDeletea.Invoke();   
            }
        }
    }
}